home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat3
/
Tcl
/
printdbl.z
/
printdbl
Wrap
Text File
|
1998-10-30
|
3KB
|
67 lines
TTTTccccllll____PPPPrrrriiiinnnnttttDDDDoooouuuubbbblllleeee((((3333TTTTccccllll)))) TTTTccccllll____PPPPrrrriiiinnnnttttDDDDoooouuuubbbblllleeee((((3333TTTTccccllll))))
NNNNAAAAMMMMEEEE
Tcl_PrintDouble - Convert floating value to string
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
####iiiinnnncccclllluuuuddddeeee <<<<ttttccccllll....hhhh>>>>
TTTTccccllll____PPPPrrrriiiinnnnttttDDDDoooouuuubbbblllleeee(_i_n_t_e_r_p, _v_a_l_u_e, _d_s_t)
AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
Tcl_Interp *_i_n_t_e_r_p (in) Interpreter that controls the
conversion.
double _v_a_l_u_e (in) Floating-point value to be converted.
char *_d_s_t (out) Where to store string representing
_v_a_l_u_e. Must have at least
TCL_DOUBLE_SPACE characters of storage.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
TTTTccccllll____PPPPrrrriiiinnnnttttDDDDoooouuuubbbblllleeee generates a string that represents the value of _v_a_l_u_e and
stores it in memory at the location given by _d_s_t. It uses %g format to
generate the string, with two special twists. First, the string is
guaranteed to contain either a ``.'' or an ``e'' so that it doesn't look
like an integer (where %g would generate an integer with no decimal
point, TTTTccccllll____PPPPrrrriiiinnnnttttDDDDoooouuuubbbblllleeee adds ``.0''). Second, the number of significant
digits printed at _d_s_t is controlled by the ttttccccllll____pppprrrreeeecccciiiissssiiiioooonnnn variable in
_i_n_t_e_r_p; if ttttccccllll____pppprrrreeeecccciiiissssiiiioooonnnn is undefined then 6 significant digits are
printed.
KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
conversion, double-precision, floating-point, string
PPPPaaaaggggeeee 1111